<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>审图--报价记录</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/lib/layui/css/layui.css">
    <link rel="stylesheet" href="/static/css/weadmin.css">
    <script type="text/javascript" src="/templates/act/process-xl.js"></script>
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
    <style>
        body {
            box-sizing: border-box;
            -moz-box-sizing: border-box; /* Firefox */
            -webkit-box-sizing: border-box; /* Safari */
            padding: 20px 20px;
        }

        p {
            text-indent: 25px
        }

        h3 {
            font-weight: bold;
            display: inline;

        }

        .title {
            margin-bottom: 20px;
        }

        .layui-table th {
            text-align: center;
        }

        table {
            text-align: center;
        }
    </style>
</head>
<body>
<div class="title">
    <h3>项目名称:</h3>
    <h3 id="prjName"></h3>
</div>
<table class="layui-hide" id="dataList" lay-filter="dataList"></table>

<script type="text/javascript" src="/lib/layui/layui.js"></script>
<script src="/static/js/main.js"></script>
<script>
    var configureCom = {};
    var listData ={};
    layui.use(['jquery', 'configureCom', 'configure', 'sessionFun', 'table', 'matchDict'], function () {
        var $ = layui.jquery;
        var configure = layui.configure;
        var table = layui.table;
        var configureCom = layui.configureCom;
        var matchDict = layui.matchDict;
        configureCom = layui.configureCom;
        var sessionFun = layui.sessionFun;//存储session
        listData = sessionFun.get(configure.SESSION_PROJECT_LIST_DATA);//获取 存储的session
        $.each(listData,function (index,value) {
            $('#'+index).html(value)
        })
        var cols = [[
            {field: 'priceTimes', title: '报价次数'},
            {
                field: 'prjName', title: '报价详情', templet: function (d) {
                    return '<p>施工图审查费用：' + (d.sjCost || '-') + '</p><p>勘察图审查费用:' + (d.kcCost || '-') + '</p>';
                }
            },
            {field: 'createTime', title: '报价时间'},
            {field:'selectStatus', title: '状态', templet: function (d) {
                    return '<p>' +matchDict.name(d.selectStatus,'PRICE_STATUS2') + '</p>';
                }
            },
        ]];

        configureCom.tableRender(configure.EXAMINE_PRICE_PRICE_RECORD_HTTP, {decId: listData.decId}, cols, 'dataList');


    });
</script>
</body>
</html>